<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <meta name="format-detection" content="telephone=yes">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <title>vue-project</title>
  <script>
	console.log(1)
    // 动态计算html font-size
    !function(){
      let width = document.documentElement.clientWidth;
      document.documentElement.style.fontSize = width /10 + 'px'
    }()
    // 禁止safari双击放大
    window.onload=function () {
      document.addEventListener('touchstart',function (event) {
        if(event.touches.length>1){
          event.preventDefault();
        }
      });
      let lastTouchEnd=0;
      document.addEventListener('touchend',function (event) {
        let now=(new Date()).getTime();
        if(now-lastTouchEnd<=300){
          event.preventDefault();
        }
        lastTouchEnd=now;
      },false)
    }
  </script>

</head>
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>

